/*    */ package com.jcrj.util;
/*    */ 
/*    */ import java.io.BufferedReader;
/*    */ import java.io.InputStreamReader;
/*    */ import java.net.URL;
/*    */ import java.net.URLConnection;
/*    */ 
/*    */ public class SendMessage
/*    */ {
/*    */   public boolean sendSMS(String content, String mobilePhones, String priority, String messageFlag, String moduleName, String exNumber)
/*    */   {
/* 22 */     String strURL = "http://10.128.129.9:8088/ISendSMS.jsp";
/* 23 */     String response = "";
/* 24 */     boolean success = false;
/*    */     try {
/* 26 */       strURL = strURL + "?MobilePhones=" + mobilePhones + 
/* 27 */         "&Content=" + content + 
/* 28 */         "&Priority=" + priority + 
/* 29 */         "&ExNumber=" + exNumber + 
/* 30 */         "&MessageFlag=" + messageFlag + 
/* 31 */         "&ModuleName=" + moduleName;
/* 32 */       URL objURL = new URL(strURL);
/* 33 */       URLConnection objConn = objURL.openConnection();
/* 34 */       objConn.setDoInput(true);
/* 35 */       BufferedReader br = new BufferedReader(
/* 36 */         new InputStreamReader(objConn.getInputStream()));
/* 37 */       String line = br.readLine();
/* 38 */       while (line != null) {
/* 39 */         response = response + line;
/* 40 */         line = br.readLine();
/*    */       }
/* 42 */       br.close();
/* 43 */       success = true;
/*    */     }
/*    */     catch (Exception e) {
/* 46 */       success = false;
/*    */     }
/* 48 */     return success;
/*    */   }
/*    */ }

/* Location:           /Volumes/work/oa/WEB-INF/classes/
 * Qualified Name:     com.jcrj.util.SendMessage
 * JD-Core Version:    0.6.0
 */